<?php
$id=$_GET['id'];
$name1 = $_POST['edit_1'];
$conn = mysql_connect('localhost','root' ,'vertrigo');
mysql_select_db('tdc_database');
if($name1=='')
    echo "Update thất bại!";
else {
    mysql_query("update students set name='".$name1."' where id='".$id."'");
    echo "Update thành công!";
}

?>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="1; url=index.php"/>
</head>


